import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/login'
import Home from '@/views/home'

Vue.use(Router)

const router = new Router({
  routes: [
    { path: '/',redirect:'/login'},
    { path: '/login', component: Login},
    { path: '/home', component: Home},
  ]
})

export default router